package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteSysPara table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteSysPara"
 */

public abstract class BaseAnteSysPara  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteSysPara";
	public static String PROP_PARA_VALUE = "paraValue";
	public static String PROP_PARA_KEY = "ParaKey";
	public static String PROP_PARA_DESC = "paraDesc";


	// constructors
	public BaseAnteSysPara () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteSysPara (java.lang.String paraKey) {
		this.setParaKey(paraKey);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteSysPara (
		java.lang.String paraKey,
		java.lang.String paraValue) {

		this.setParaKey(paraKey);
		this.setParaValue(paraValue);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String paraKey;

	// fields
	private java.lang.String paraValue;
	private java.lang.String paraDesc;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="assigned"
     *  column="ParaKey"
     */
	public java.lang.String getParaKey () {
		return paraKey;
	}

	/**
	 * Set the unique identifier of this class
	 * @param paraKey the new ID
	 */
	public void setParaKey (java.lang.String paraKey) {
		this.paraKey = paraKey;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: ParaValue
	 */
	public java.lang.String getParaValue () {
		return paraValue;
	}

	/**
	 * Set the value related to the column: ParaValue
	 * @param paraValue the ParaValue value
	 */
	public void setParaValue (java.lang.String paraValue) {
		this.paraValue = paraValue;
	}



	/**
	 * Return the value associated with the column: ParaDesc
	 */
	public java.lang.String getParaDesc () {
		return paraDesc;
	}

	/**
	 * Set the value related to the column: ParaDesc
	 * @param paraDesc the ParaDesc value
	 */
	public void setParaDesc (java.lang.String paraDesc) {
		this.paraDesc = paraDesc;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteSysPara)) return false;
		else {
			AnteSysPara anteSysPara = (AnteSysPara) obj;
			if (null == this.getParaKey() || null == anteSysPara.getParaKey()) return false;
			else return (this.getParaKey().equals(anteSysPara.getParaKey()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getParaKey()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getParaKey().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}